package com.kitchen.ui.counter
{
	import flash.display.Sprite;

	public class Cell extends Sprite
	{
		//postion
		public var position:int
		public var cdata:Object;
		
		public var w:int;
		public var h:int;
		public var total:int;
		public var amount:int;
		
		public function Cell()
		{
			super();
			this.total = 200;
			this.amount = 50;
		}
		
		public function append(amount:int):void{
			
		}
		
		public function reduce(amount:int):void{
			if(this.total < amount){
				return;
			}
			this.total -= amount;
		}
		
		private function repaint():void{
			var rate:int = Math.round(this.amount*100/this.total);
			if(rate > 74){
				
			}else if(rate > 49){
				
			}else if(rate > 10){
				
			}else{
				
			}
		}
	}
}